/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ins.entity;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 检验报告书-数据Entity
 * @author fanqinglong
 * @version 2017-11-29
 */
public class InsData extends DataEntity<InsData> {
	
	private static final long serialVersionUID = 1L;
	private String name = "";		// 名称
	private String index ="";   // 索引
	private InsTable table;     // 数据表
	private Integer sort = 10;		// 排序
	private List<InsDataLink> datas = Lists.newArrayList();;     // 值
	private InsField dateField;  // 页面查询条件：日期字段
	private String dateFrom;   // 日期字段起
	private String dateTo;     // 日期字段止
	private String fillFlag;   // 是否可以进行再次填报，当表中数据未填完全的时候，可以进行再次填报
	

	public String getDateFrom() {
		return dateFrom;
	}

	public void setDateFrom(String dateFrom) {
		this.dateFrom = dateFrom;
	}

	public String getDateTo() {
		return dateTo;
	}

	public void setDateTo(String dateTo) {
		this.dateTo = dateTo;
	}

	public InsData() {
		super();
	}

	public InsData(String id){
		super(id);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@JsonIgnore
	public InsTable getTable() {
		return table;
	}

	public void setTable(InsTable table) {
		this.table = table;
	}

	public List<InsDataLink> getDatas() {
		return datas;
	}

	public void setDatas(List<InsDataLink> datas) {
		this.datas = datas;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public InsField getDateField() {
		return dateField;
	}

	public void setDateField(InsField dateField) {
		this.dateField = dateField;
	}

	public String getFillFlag() {
		return fillFlag;
	}

	public void setFillFlag(String fillFlag) {
		this.fillFlag = fillFlag;
	}

}